<?php
/**
 * Created by PhpStorm.
 * User: mj
 * Date: 17-5-23
 * Time: 下午2:25
 */

namespace App\Winged\Backend\Oss;


class OssConfig
{
    public $accessKeyId ;

    public $accessKeySecret ;

    public $endpoint ;

    public $bucket ;


    public function __construct($internal = false)
    {
        $this->accessKeyId = config('winged.backend.oss.AccessKeyId');

        $this->accessKeySecret = config('winged.backend.oss.AccessKeySecret');

        $this->endpoint = $internal ? config('winged.backend.oss.internal') : config('winged.backend.oss.public') ;

        $this->bucket = config('winged.backend.oss.bucket') ;

    }

    /**
     * @return mixed
     */
    public function getAccessKeyId()
    {
        return $this->accessKeyId;
    }

    /**
     * @param mixed $accessKeyId
     */
    public function setAccessKeyId($accessKeyId)
    {
        $this->accessKeyId = $accessKeyId;
    }

    /**
     * @return mixed
     */
    public function getAccessKeySecret()
    {
        return $this->accessKeySecret;
    }

    /**
     * @param mixed $accessKeySecret
     */
    public function setAccessKeySecret($accessKeySecret)
    {
        $this->accessKeySecret = $accessKeySecret;
    }

    /**
     * @return mixed
     */
    public function getEndpoint()
    {
        return $this->endpoint;
    }

    /**
     * @param mixed $endpoint
     */
    public function setEndpoint($endpoint)
    {
        $this->endpoint = $endpoint;
    }

    /**
     * @return mixed
     */
    public function getBucket()
    {
        return $this->bucket;
    }

    /**
     * @param mixed $bucket
     */
    public function setBucket($bucket)
    {
        $this->bucket = $bucket;
    }



}
